<!--
 * @Description: 操作日志详情
 * @Autor: Zhu_liangyu
 * @Date: 2020-07-13 16:59:46
--> 
<template>
  <a-card :bordered="false">
    <basic-form
      ref="operateLogForm"
      v-model="operateLogForm"
      :rules="operateLogRules"
      primary-key="operateLogId"
      :query-api="operateLog_queryByIdApi"
      :insert-api="operateLog_insertApi"
      :update-api="operateLog_updateApi"
    >
      <a-form-model-item label="操作日志id" prop="operateLogId" ref="operateLogId" :hasFeedback="true">
        <a-input v-model="operateLogForm.operateLogId" placeholder="请输入操作日志id"></a-input>
      </a-form-model-item>
      <a-form-model-item label="登录名称" prop="loginUserName" ref="loginUserName" :hasFeedback="true">
        <a-input v-model="operateLogForm.loginUserName" placeholder="请输入登录名称"></a-input>
      </a-form-model-item>
      <a-form-model-item label="登录ip" prop="loginIp" ref="loginIp" :hasFeedback="true">
        <a-input v-model="operateLogForm.loginIp" placeholder="请输入登录ip"></a-input>
      </a-form-model-item>
      <a-form-model-item label="登录地址" prop="loginArea" ref="loginArea" :hasFeedback="true">
        <a-input v-model="operateLogForm.loginArea" placeholder="请输入登录地址"></a-input>
      </a-form-model-item>
      <a-form-model-item label="请求地址" prop="requestUrl" ref="requestUrl" :hasFeedback="true">
        <a-input v-model="operateLogForm.requestUrl" placeholder="请输入请求地址"></a-input>
      </a-form-model-item>
      <a-form-model-item label="请求方法" prop="requestMethod" ref="requestMethod" :hasFeedback="true">
        <a-input v-model="operateLogForm.requestMethod" placeholder="请输入请求方法"></a-input>
      </a-form-model-item>
      <a-form-model-item label="请求数据" prop="requestData" ref="requestData" :hasFeedback="true">
        <a-input v-model="operateLogForm.requestData" placeholder="请输入请求数据"></a-input>
      </a-form-model-item>
      <a-form-model-item label="浏览器" prop="browser" ref="browser" :hasFeedback="true">
        <a-input v-model="operateLogForm.browser" placeholder="请输入浏览器"></a-input>
      </a-form-model-item>
      <a-form-model-item label="操作系统" prop="os" ref="os" :hasFeedback="true">
        <a-input v-model="operateLogForm.os" placeholder="请输入操作系统"></a-input>
      </a-form-model-item>
      <a-form-model-item label="登录日期" prop="createTime" ref="createTime" :hasFeedback="true">
        <a-date-picker
          v-model="operateLogForm.createTime"
          show-time
          valueFormat="YYYY-MM-DD"
          placeholder="请选择登录日期"
          style="width:100%"
        ></a-date-picker>
      </a-form-model-item>
    </basic-form>
  </a-card>
</template>
<script>
import {
  operateLog_queryByIdApi,
  operateLog_insertApi,
  operateLog_updateApi
} from "@/api/org/operateLog";
import { operateLogRules } from "@/profile/org/operateLog";

export default {
  data() {
    return {
      operateLogRules,
      operateLog_queryByIdApi,
      operateLog_insertApi,
      operateLog_updateApi,
      operateLogForm: {
        operateLogId: this.$route.params.id
      }
    };
  }
};
</script>